GH issue 1092 & 1096: Filters in saved views break column value contains semicolon or column name contains apostrophe#7624
Open
GH issue 1092 & 1096: Filters in saved views break column value contains semicolon or column name contains apostrophe#7624
Conversation
…ins semicolon or column name contains apostrophe
cnathe
approved these changes
Apr 28, 2026
|
|
||
| // GitHub Issue 1096: Filters in saved views break after MVTC → TC conversion if column value contains semicolon | ||
| // if the single value contains ";", the filter is saved as {json:[]} for MVTC, needs to convert to multi value filter types (for example, 'in' instead of 'eq'). | ||
| boolean isJsonArrayFilterValue = filterStr.indexOf(JSON_ARRAY_FILTER_PREFIX) > 0 && filterStr.endsWith(JSON_ARRAY_FILTER_SUFFIX); |
Contributor
There was a problem hiding this comment.
should this be a check that it starts at index 0 instead of just > 0?
Contributor
Author
There was a problem hiding this comment.
This as currently is should be > 0 instead of 0 since the string contains dataregion.query~op prefix.
| return filterStr; | ||
|
|
||
| // if the single value filter value contains ";", drop the filter after converting to array type filter since the filter value is no longer valid | ||
| return ""; |
Contributor
There was a problem hiding this comment.
this seems a little backwards to me. I would have expected things check to go in the opposite direction where if the if statement was true for "valuePart contains ENCODED_SEMICOLON" then return empty string and the fallback / end of method to return filterStr. is there some reason that wouldn't work?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rationale
Issue 1092 & 1096
arraymatchesis converted toin,arraynotmatchesis converted tonotin, if the fitler value contains semicolon. If the value doesn't contain semicolon, they continue to convert toeqandneqornull, as before.Related Pull Requests
Changes